<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Compressore e decompressore di Huffman:  File sorgente struttura_dati.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compressore e decompressore di Huffman
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generato da Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">struttura_dati.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="struttura__dati_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00007"></a>00007 <span class="keyword">using namespace </span>std;
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#ifdef DEBUG_MODE</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MASCHERA_DEBUG = 3;
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#define DBG(A, B) {if ((A) &amp; MASCHERA_DEBUG) {B; } }</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00014"></a><a class="code" href="struttura__dati_8h.html#a9fd176efd6d22cb809550f0271c2a93d">00014</a> <span class="preprocessor"></span><span class="preprocessor">#define DBG(A, B)</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00016"></a><a class="code" href="struttura__dati_8h.html#a330bea9b36f638349fec0d06c8ab4c38">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define D1(a) DBG(1, a)</span>
<a name="l00017"></a><a class="code" href="struttura__dati_8h.html#a975397c373ae2a9dc28d0297fa18da56">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define D2(a) DBG(2, a)</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 
<a name="l00028"></a><a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8a026ab1209905ffcd141965d2a55f14d3">00028</a> <span class="keyword">enum</span> <a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8" title="Stato di esplorazione.">colore_t</a>{<a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8a3226bf95e2fad7dccac1089fb62a60d5">bianco</a>, <a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8a16d16c4bd6892954a40f8d5105483c5a">grigio</a>, <a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8a026ab1209905ffcd141965d2a55f14d3">nero</a>};
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00041"></a><a class="code" href="structnodo__t.html">00041</a> <span class="keyword">struct </span><a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">nodo_t</a>{
<a name="l00042"></a><a class="code" href="structnodo__t.html#ad989a126e04f56f802a1cbe2bd5e9873">00042</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structnodo__t.html#ad989a126e04f56f802a1cbe2bd5e9873">carattere</a>;
<a name="l00043"></a><a class="code" href="structnodo__t.html#aeaac09068e9964e1cf0dc0cf0cbddb3e">00043</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structnodo__t.html#aeaac09068e9964e1cf0dc0cf0cbddb3e">occorrenze</a>;
<a name="l00044"></a><a class="code" href="structnodo__t.html#a9e213085b945a767354580f018e9fd6c">00044</a> <a class="code" href="struttura__dati_8h.html#afe13424a6e8bc9b5ab4e4a5676e087a8" title="Stato di esplorazione.">colore_t</a> <a class="code" href="structnodo__t.html#a9e213085b945a767354580f018e9fd6c">colore</a>;
<a name="l00045"></a><a class="code" href="structnodo__t.html#a7552a94330c468be83d0230015b1e91b">00045</a> <a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">nodo_t</a> *<a class="code" href="structnodo__t.html#a7552a94330c468be83d0230015b1e91b">parent</a>;
<a name="l00046"></a><a class="code" href="structnodo__t.html#a099c3cb9fc78894669a96f326ef1c995">00046</a> <a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">nodo_t</a> *<a class="code" href="structnodo__t.html#a099c3cb9fc78894669a96f326ef1c995">left</a>;
<a name="l00047"></a><a class="code" href="structnodo__t.html#a63feda6a0c60ef1c3ad40b2f8af8b3d5">00047</a> <a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">nodo_t</a> *<a class="code" href="structnodo__t.html#a63feda6a0c60ef1c3ad40b2f8af8b3d5">right</a>;
<a name="l00048"></a>00048 };
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 
<a name="l00055"></a><a class="code" href="struttura__dati_8h.html#a9f60b9b58782ba6160e6fbb0e07f01d1">00055</a> <span class="keyword">typedef</span> <a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">nodo_t</a> *<a class="code" href="struttura__dati_8h.html#a9f60b9b58782ba6160e6fbb0e07f01d1" title="Puntatore a un nodo (nodo_t).">pnode</a>;
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00065"></a><a class="code" href="struttura__dati_8h.html#af58356d62dd306b8dfec4c5672fc6f18">00065</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="struttura__dati_8h.html#af58356d62dd306b8dfec4c5672fc6f18" title="Numero massimo di caratteri.">CARATTERI_ASCII</a> = 256+1;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 
<a name="l00073"></a><a class="code" href="structqueue.html">00073</a> <span class="keyword">struct </span><a class="code" href="structqueue.html" title="Struttura della Coda.">queue</a>{
<a name="l00074"></a><a class="code" href="structqueue.html#ae51389dda8b2b2f9a84f548769134375">00074</a> <a class="code" href="structnodo__t.html" title="Struttura di un nodo dell&#39;albero.">pnode</a> elemento[<a class="code" href="struttura__dati_8h.html#af58356d62dd306b8dfec4c5672fc6f18" title="Numero massimo di caratteri.">CARATTERI_ASCII</a>];
<a name="l00075"></a><a class="code" href="structqueue.html#a9b8a507a94975d2a81ebe91d8ea2ca66">00075</a> <span class="keywordtype">int</span> <a class="code" href="structqueue.html#a9b8a507a94975d2a81ebe91d8ea2ca66">n_elementi</a>;
<a name="l00076"></a>00076 };
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 
<a name="l00081"></a><a class="code" href="struttura__dati_8h.html#a01263eda298b2e6da33b546a92e3a073">00081</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *<a class="code" href="struttura__dati_8h.html#a01263eda298b2e6da33b546a92e3a073">codice</a> [<a class="code" href="struttura__dati_8h.html#af58356d62dd306b8dfec4c5672fc6f18" title="Numero massimo di caratteri.">CARATTERI_ASCII</a>-1];
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Definizioni</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generato Ven 5 Lug 2013 12:24:12 per Compressore e decompressore di Huffman da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
